﻿using JQData.Core.DbModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JQData.Application.DataFetch
{
    public class DataFetchBase
    {
        protected readonly IRepository<HotMoney> _hmDb;
        protected readonly IRepository<HotMoneyTrade> _hmtDb;
        protected readonly IRepository<HotMoneyStockCycleProfit> _hmsDb;
        protected readonly IRepository<StockBasic> _sbDb;

        public DataFetchBase(
            IRepository<HotMoney> hmDb,
            IRepository<HotMoneyTrade> hmtDb,
            IRepository<HotMoneyStockCycleProfit> hmsDb,
            IRepository<StockBasic> sbDb)
        {
            _hmDb = hmDb ?? throw new ArgumentNullException(nameof(hmDb));
            _hmtDb = hmtDb ?? throw new ArgumentNullException(nameof(hmtDb));
            _hmsDb = hmsDb ?? throw new ArgumentNullException(nameof(hmsDb));
            _sbDb = sbDb ?? throw new ArgumentNullException(nameof(sbDb));
        }


    }
}
